package com.qf.lanzhou.shop.api.service;

import com.qf.lanzhou.shop.pojo.entity.Goods;
import com.qf.lanzhou.shop.pojo.entity.User;

import java.util.List;

/**
 * @Author Nerly
 * @Date 2021/1/11 20:02
 * @JDK 1.8
 * @Version 1.0
 */
public interface HistoryService {
    /**
     * 根据用户id查找足迹
     *
     * @param user
     * @return
     */
    List<Goods> selectByUserId(User user);

    /**
     * 用户浏览商品产生足迹
     *
     * @param user
     * @param goods
     * @return
     */
    int walk(User user, Goods goods);
}
